package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 赠送贺卡记录参数
 * @author DEREK
 */
@Data
@ApiModel("赠送贺卡记录更新参数")
public class GreetingCardsRecordUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "类型 1=收到 2=送出")
    private Integer type;

    @NotNull(message = "cardId参数缺失")
    @ApiModelProperty(value = "贺卡id")
    private Integer cardId;

    @NotNull(message = "userId参数缺失")
    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @NotNull(message = "toUserId参数缺失")
    @ApiModelProperty(value = "对方用户id")
    private Integer toUserId;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "祝福语")
    private String content;

    @NotNull(message = "remark参数缺失")
    @ApiModelProperty(value = "备注")
    private String remark;

}
